package com.eoner.baselibrary.utils;

import android.content.Context;
import android.graphics.Typeface;
import android.widget.TextView;

import java.util.HashSet;

/**
 * 作者：sean
 * 创建时间：2017/6/9 14:56
 * 功能说明：
 */

public class AppUtil {

    private static HashSet<Integer> clickTagList = new HashSet<>();
    private static HashSet<Integer> loadTagList = new HashSet<>();

    public static void setClickTag(int position) {
        clickTagList.add(position);
    }

    public static HashSet<Integer> getClickTagList(){
        return clickTagList;
    }

    public static void setLoadTag(int position) {
        loadTagList.add(position);
    }

    public static HashSet<Integer> getLoadTagList(){
        return loadTagList;
    }

    public static void clear() {
        clickTagList.clear();
        loadTagList.clear();
    }


    public static void setDin(TextView textView, Context mContext){
        Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), "fonts/din.ttf");
        textView.setTypeface(typeface);
    }
}
